package lab02.Test35;

/**
 * Created by Administrator on 2017/11/18.
 */
public class Salesman extends Employee { double baseSalary;
    int numbers;
    double money;//销售提成=numbers*money
    public Salesman(String name,double baseSalary,int numbers,double money) {
        super(name);

        this.baseSalary=baseSalary;
        this.numbers=numbers;
        this.money=money;
    }
    @Override
    double calSalary() {
        return  baseSalary+numbers*money;
    }
}
